#/***************************************************************************\
# * Copyright (C) by Keio University
# * CMakeLists.txt created in 10 2011.
# * Mail : fdesorbi@hvrl.ics.keio.ac.jp
# *
# * This file is part of the HVRL Engine Library.
# *
# * The HVRL Engine Library is free software; you can redistribute it and/or modify
# * it under the terms of the GNU Lesser General Public License as published by
# * the Free Software Foundation; either version 3 of the License, or
# * (at your option) any later version.
# *
# * The HVRL Engine Library is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# * GNU Lesser General Public License for more details.
# *
# * You should have received a copy of the GNU Lesser General Public License
# * along with this program.  If not, see <http://www.gnu.org/licenses/>.
# *
# ***************************************************************************/

PROJECT(HVRL_SAMPLE_TRIDELITY)

   INCLUDE_DIRECTORIES(
        "../../../modules/common/include"
        "../../../modules/display/include"
        "../../../modules/tools/include"
    )

	set(the_target "tridelity")

	file(GLOB cpp_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c*)
	file(GLOB hpp_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h*)

        add_executable(${the_target} ${cpp_samples} ${hpp_samples})
        set_target_properties(${the_target} PROPERTIES
            OUTPUT_NAME "${the_target}"
            PROJECT_LABEL "(SAMPLE) ${the_target}")
        add_dependencies(${the_target} ${OpenCV_LIBS} hvrl_display　hvrl_common hvrl_tools)
        target_link_libraries(${the_target} ${OpenCV_LIBS} hvrl_display hvrl_common hvrl_tools)

 	install(TARGETS ${the_target}
                RUNTIME DESTINATION "${HVRL_BIN_INSTALL_PATH}/samples/${the_target}" COMPONENT main)

